package sk.velkavrana.app.databaseInfo.temp.dao.inMemory;

import sk.velkavrana.app.databaseInfo.dao.AbstractDao;
import sk.velkavrana.app.databaseInfo.model.StorableObject;

/**
 * @author mtymes
 * @since Sep 21, 2009 10:32:58 PM
 */
public abstract class AbstractDaoInMemory<T extends StorableObject<String>> implements AbstractDao<T, String> {

/*
    protected abstract Class<T> getStorableObjectClass();


    protected T getNewStorableObject() {
        T bean = null;

        Class<T> beanClass = getStorableObjectClass();

        try {
            bean = beanClass.newInstance();
        } catch (InstantiationException e) {
            e.printStackTrace();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        }

        return bean;
    }


    public List<T> getAll() {
        // todo: implement
        return null;
    }


    public T getById(String id) {
        File file = new File(directoryPath + File.separator + id + ".xml");

        T bean = null;
        if (file.exists()) {
            // todo: implement

        }

        return bean;
    }


    public void save(T object) {
        // todo: implement

    }


    public void remove(T object) {
        // todo: implement

    }
*/

}
